﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <Style x:Key="rightPaneStyle">
        <Setter Property="Control.Background">
            <Setter.Value>
                <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.912,3.047">
                    <GradientStop Offset="0" Color="{StaticResource SecondaryColor}" />
                    <GradientStop Offset="0.996" Color="{StaticResource MainColor}" />
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
    </Style>

    <!--  Used to style the top bar in the Tasks and Help panes  -->
    <Style x:Key="panesBorderStyle" TargetType="Border">
        <Setter Property="Background">
            <Setter.Value>
                <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
                    <GradientStop Offset="0" Color="{StaticResource SecondaryColor}" />
                    <GradientStop Offset="1" Color="{StaticResource MainColor}" />
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="mainFrameStyle">
        <Setter Property="Control.Background">
            <Setter.Value>
                <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.912,3.047">
                    <GradientStop Offset="0" Color="{StaticResource SecondaryColor}" />
                    <GradientStop Offset="0.996" Color="{StaticResource MainColor}" />
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="RightPane" TargetType="{x:Type GroupBox}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type GroupBox}">
                    <Grid Margin="3,0,3,0">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="*" />
                        </Grid.RowDefinitions>
                        <Border Margin="0,0,0,0" 
                                BorderBrush="DarkGray"
                                BorderThickness="1"
                                CornerRadius="5,5,0,0"
                                Style="{StaticResource panesBorderStyle}">
                            <Grid>
                                <Label HorizontalAlignment="Center" 
                                       Panel.ZIndex="2"
                                       Content="{TemplateBinding Header}"
                                       FontWeight="Bold"
                                       Foreground="Black" />
                            </Grid>
                        </Border>
                        <Border x:Name="borderTasks" 
                                Grid.Row="1"
                                Margin="0,-1,0,0"
                                HorizontalAlignment="Stretch"
                                VerticalAlignment="Stretch"
                                BorderBrush="DarkGray"
                                BorderThickness="1"
                                CornerRadius="0,0,5,5">
                            <ScrollViewer Focusable="False" 
                                          HorizontalScrollBarVisibility="Disabled"
                                          VerticalScrollBarVisibility="Auto">
                                <ContentPresenter />
                            </ScrollViewer>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>